<html>
<head>
<meta charset="utf-8">
</head>

<body>
	
<?php     

/* MySQL服务器地址 */
$host = "localhost";
/* 服务器用户名 */
$username = "root";
/* 服务器密码 */
$password = "88888888";
/* 数据库名称 */
$dbname = "banmei_db";
	
//连接MySQL服务器和数据库
$conn = new mysqli($host, $username, $password, $dbname);
if ($conn -> mysqli_connect_error){
	echo "数据库连接失败:".$conn -> mysqli_connect_error;
}
	
?>

</body>

</html>
